#pragma once



#include <opencv2/opencv.hpp> 
using namespace cv;

/// <summary>
/// 模糊卷积
/// </summary>
/// <param name="image"></param>
void blur_demo(Mat& image)
{
	Mat dst;
	blur(image, dst, Size(5, 5), Point(-1, -1));
	imshow("source", image);
	imshow("blur", dst);
}

/// <summary>
/// 
/// </summary>
/// <param name="image"></param>
void gaussian_blur_demo(Mat& image)
{
	Mat dst;
	GaussianBlur(image, dst, Size(9, 9), 31.0, 1.0);
	imshow("source", image);
	imshow("gblur", dst);
}

/// <summary>
/// 双边高斯模糊
/// </summary>
/// <param name="image"></param>
void bilateral_blur_demo(Mat& image)
{
	Mat dst;
	bilateralFilter(image, dst, 0, 100, 10);
	imshow("source", image);
	imshow("b-blur", dst);
}

